//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "ia\fn_hasTMFAI.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

//TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_group","_result"];
DEFAULT_PARAM(_group,0,grpNull);
_result = false;
if (IS_OBJECT(_group)) then {
	_group = group _group;
};
if (IS_GROUP(_group) && {!isnull _group}) then {
	_result = (({!isplayer _x && (OGETVAR(_x,QGVAR(MISSION_INSTANCE_ID),"") != "")} count (units _group)) > 0);
};
TRACE_1("End",_result);
TMFPROFILERSTOP;
_result;